notebook: Fix boolean check
authorBenjamin Otte <otte@redhat.com>
Tue, 10 Mar 2015 12:23:06 +0000 (13:23 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 10 Mar 2015 12:23:06 +0000 (13:23 +0100)
Commit c352093bdeb2be5390607de13eaf7a21e93272ef swapped the condition
when turning it into a return_if_fail().

gtk/gtknotebook.c

index d2d935451bb959bc1b8570bfd1d52ba23a1460a7..889826086c3c6e719b605726d0b63728933d06c5 100644 (file)
@@ -8186,7 +8186,7 @@ gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
   g_return_if_fail (GTK_IS_WIDGET (child));
 
   list = CHECK_FIND_CHILD (notebook, child);
-  g_return_if_fail (!list);
+  g_return_if_fail (list != NULL);
 
   if (expand)
     *expand = GTK_NOTEBOOK_PAGE (list)->expand;